package com.qiangzhi.constant;

/**
 * 正则表达式常量类
 */
public class RegexConstant {

    public static final String ACCOUNT_REGEX = "^\\d{12}$";

    public static final String USER_NAME_REGEX = "^[\\u4e00-\\u9fa5]{2,16}$";

    public static final String PASSWORD_REGEX = "^\\d{6}$";

    public static final String COLLEGE_ID_REGEX = "^\\d{4}$";

    public static final String MAJOR_ID_REGEX = "^\\d{4}$";

    public static final String PHONE_REGEX = "^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\\d{8}$";

    public static final String SHORT_CARD_REGEX = "^([1-6][1-9]|50)\\d{4}\\d{2}((0[1-9])|10|11|12)(([0-2][1-9])|10|20|30|31)\\d{3}$";
    public static final String LONG_CARD_REGEX = "^([1-6][1-9]|50)\\d{4}(18|19|20)\\d{2}((0[1-9])|10|11|12)(([0-2][1-9])|10|20|30|31)\\d{3}[0-9Xx]$";

    public static final String ADDRESS_REGEX = "^[\\u4E00-\\u9FA5A-Za-z0-9]{0,50}$";

}
